package com.hiwhitley.himei.network;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 * Created by hiwhitley on 17-2-15.
 */

public class TokenInterceptor implements Interceptor {

    //游品位的token,以后可能会改变
    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request()
                .newBuilder()
                .addHeader("X-Ypw-Token", "eyJtZ3JvdXBfaWRzIjpbMTcsMTMsMTIsOSw4LDEwLDddLCJkZXZpZCI6IiIsImZsYXZvciI6Im5ldGVhc2UiLCJtb2RlbCI6IkhVQVdFSSBEMi0wMDgyIiwibmV3X2RldmlkIjoiYmViN2Q5OWYxZWIzZGJhZDlmNmFkMjdjNjZjZjMwNmE3ODRhNDhlYiIsInRva2VuIjoiZXlKaGJHY2lPaUpJVXpJMU5pSXNJbVY0Y0NJNk1UVXdOekkxTmpJeE9Dd2lhV0YwSWpveE5EYzFOekl3TWpFNGZRLmV5SmtaWFpwWkNJNklqSXpaVFkwTXprMU9EWmpPREU0T1RNelpUQmtOMll6TkdGall6a3dPR1kwTURSbE5EVXhZVFlpTENKcFpDSTZNVEU0TmpnMk9IMC5XTHhSQmU2ODJvc1U4SkcxemhqNEFRX194V1h6WDdFbU1PTjBjUmFUdVVjIiwidmVyc2lvbl9uYW1lIjoiMi4yLjEiLCJ0aW1lc3RhbXAiOjE0NzU3MjAyMjU0OTgsInZlcnNpb25fY29kZSI6MTAwNTN9")
                .build();
        return chain.proceed(request);
    }
}
